package com.wiki.gds.member.facade.member.api;


import com.wiki.gds.member.facade.member.hystrix.MemberApiFallbackFactory;
import com.wiki.gds.member.facade.member.model.Member;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "gds-member-provider",path = MemberApi.mapping,fallbackFactory = MemberApiFallbackFactory.class)
public interface MemberApi {
      final static String mapping="member";

      @PostMapping
      public Member getMemberBySelf(@RequestBody Member member);

      @PostMapping
      public String Test();

}
